package com.huangkailong.designpattern.visitor;

/**
 * CTO 访问者.
 *
 * @author huangkl
 * @since 1.0.0
 */
public class CtoVisitor implements Visitor {
    @Override
    public void visit(Engineer engineer) {
        System.out.println("[CTO]工程师:" + engineer.getName() + ",KPI:" + engineer.getKpi());
    }

    @Override
    public void visit(Manager manager) {
        System.out.println("[CTO]项目经理:" + manager.getName() + ",KPI:" + manager.getKpi());
    }
}
